package com.mtao;

import com.mtao.utils.SpringContextHolder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan(value = "com.mtao.mapper")
public class MtaoAdminApplication {
	public static void main(String[] args) {

		SpringApplication.run(MtaoAdminApplication.class, args);
		System.out.println("(♥◠‿◠)ﾉﾞ  MTAO启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
				"d8b   db d888888b db   db  .o88b. db   dD    d88b \n" +
				"888o  88 `~~88~~' 88   88 d8P  Y8 88 ,8P'    `8P' \n" +
				"88V8o 88    88    88ooo88 8P      88,8P       88  \n" +
				"88 V8o88    88    88~~~88 8b      88`8b       88  \n" +
				"88  V888    88    88   88 Y8b  d8 88 `88. db. 88  \n" +
				"VP   V8P    YP    YP   YP  `Y88P' YP   YD Y8888P  \n");
	}

	/**
	 * @Description: 注册spring上下文对象
	 * @Param: []
	 * @return: com.ems.common.utils.SpringContextHolder
	 * @Author: starao
	 * @Date: 2021/11/27
	 */
	@Bean
	public SpringContextHolder springContextHolder(){
		return new SpringContextHolder();
	}

}
